﻿#pragma once
#include "STwoList.h"
#include "Components/Widget.h"
#include "UTwoListUMG.generated.h"

UCLASS()
class UTwoListUMG: public UWidget
{
	GENERATED_BODY()
public:
	UTwoListUMG();
	
	//加载界面
	virtual TSharedRef<SWidget> RebuildWidget() override;
	//UMG列表栏
	virtual const FText GetPaletteCategory() ;
	
	//面板设置完毕后会触发此事件,字面的意思是同步属性
	virtual void SynchronizeProperties() override;
	//资源释放
	virtual void ReleaseSlateResources(bool bReleaseChildren) override;
	//更新信息
	
	UFUNCTION(BlueprintCallable, Category = "Appearance")
	void UpDataList(int width,TMap<FString,FTwoListInfo> ListData);
public:
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "标题", meta = (DisplayName = "表格标题名字"))
	FString Title = "";
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "柱一", meta = (DisplayName = "柱一的名字"))
	FString OneInfo = "";
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "柱二", meta = (DisplayName = "柱二的名字"))
	FString TwoInfo = "";
	//表格主体
	TSharedPtr<STwoList> TwoList;
};
